x86/ucode: Fix error paths control_thread_fn()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 31 Mar 2023 06:33:28 +0000 (08:33 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 31 Mar 2023 06:33:28 +0000 (08:33 +0200)
commit7f55774489d2f12a23f2ac0f516b62e2709cea99
tree99535a7f12ddc1e4d8de3070fc272a1da1d4d601
parentf6a3e93b3788aa009e9b86d9cb14c243b958daa9
x86/ucode: Fix error paths control_thread_fn()

These two early exits skipped re-enabling the watchdog, restoring the NMI
callback, and clearing the nmi_patch global pointer.  Always execute the tail
of the function on the way out.

Fixes: 8dd4dfa92d62 ("x86/microcode: Synchronize late microcode loading")
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Sergey Dyasli <sergey.dyasli@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
master commit: fc2e1f3aad602a66c14b8285a1bd38a82f8fd02d
master date: 2023-03-28 11:57:56 +0100
xen/arch/x86/cpu/microcode/core.c